package com.sevenGroup.pawnshop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sevenGroup.pawnshop.controller.form.SelectWarehousesForm;
import com.sevenGroup.pawnshop.controller.form.pageForm;
import com.sevenGroup.pawnshop.controller.form.WarehousesForm;
import com.sevenGroup.pawnshop.exception.sevenGroupException;
import com.sevenGroup.pawnshop.model.Warehouses;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sevenGroup
 * @since 2022-02-16
 */
public interface WarehousesService extends IService<Warehouses> {

    //新增仓库
    void saveWarehouse(WarehousesForm warehousesForm) throws sevenGroupException;
    //分页查询所有仓库
    IPage selectAllWarehouses(pageForm pageForm) throws sevenGroupException;
    //更新仓库
    void updateWarehouses(WarehousesForm warehousesForm) throws sevenGroupException;
    //根据门店id查询所有仓库
    List<Warehouses> selectAllWarehousesByStoreId(Integer storeId) throws sevenGroupException;
    //根据条件模糊查询所有仓库
    IPage selectAllWarehouses(SelectWarehousesForm selectWarehousesForm) throws sevenGroupException;
    //根据仓库id集合删除仓库
    void delWarehousesByList(List<Integer> list) throws sevenGroupException;
    //根据仓库id删除仓库
    void delWarehouses(Integer warehouseId) throws sevenGroupException;

}
